home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Errors / MemoryError.h < prev    next >
Text File  |  1997-06-28  |  365b  |  24 lines

  1. // MemoryError.h
  2.  
  3. #ifndef MemoryError_h
  4. #define MemoryError_h
  5.  
  6. #ifndef OSError_h
  7. #include "OSError.h"
  8. #endif
  9.  
  10. class MemoryError: public OSError
  11.   {
  12.     public:
  13.         MemoryError()                        : OSError()        {}
  14.         MemoryError( OSErr e )            : OSError( e )    {}
  15.         MemoryError( OSError& e )        : OSError( e )    {}
  16.         
  17.         static MemoryError Check()
  18.           {
  19.             return MemError();
  20.           }
  21.   };
  22.  
  23. #endif
  24.